package com.sc.es.service;

import com.sc.es.common.HouseResult;
import com.sc.es.common.RentSearchForm;
import com.sc.es.common.ServiceResult;
import com.sc.es.entity.House;
import com.sc.es.form.DatatableSearch;
import com.sc.es.form.HouseForm;
import com.sc.es.form.MapSearch;
import com.sc.es.repo.HouseRepo;

/**
 * @author sc
 * Created on  2018/2/7
 */
public interface IHouseService {
    HouseResult save(HouseForm houseForm);
    ServiceResult findAllHouse(DatatableSearch search);
    HouseResult findCompleteOne(Integer id);
    HouseResult update(HouseForm houseForm);

    HouseResult setCover(Integer targetId, Integer coverId);

    HouseResult deletePhoto(Integer id);

    HouseResult changeStatusToPublish(Integer id,boolean ispb);

    HouseResult deleteHouse(Integer id);

    ServiceResult query(RentSearchForm form);

    HouseResult findHouseInCity(String cityEnName);

    ServiceResult wholeMapQuery(MapSearch mapSearch);

    /**
     * 精确范围数据查询
     * @param mapSearch
     * @return
     */
    ServiceResult boundMapQuery(MapSearch mapSearch);
}
